package com.zjitc;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.zjitc.model.JsonData;
import org.junit.Test;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/27 15:34
 * @description:
 */
public class JsonDataSource {



  private static final Gson gson = new GsonBuilder().create();




  @Test
  public void gsonTest(){
    JsonData data=new JsonData();
    data.setState(0);
    data.setMsg("Success");
    System.out.println(gson.toJson(data));
  }

}
